import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "../src/store";
//1.引入mock的配置，让mock运行起来
import "@/mock";

import components from "./main/components";
import lazyload from '@/main/lazyload'
import element from '@/main/element'
import validate from '@/main/validate'


// 全局注册组件
Vue.use(components)
//懒加载
Vue.use(lazyload)
//使用elementUI插件
Vue.use(element)
// 使用校验插件
Vue.use(validate)


Vue.config.productionTip = false;
new Vue({
	render: (h) => h(App),
	router,
	store,
	beforeCreate() {
		Vue.prototype.$bus = this;
	},
}).$mount("#app");
